﻿using System;
using System.Collections.Generic;

namespace MGAS.Logic.Communication
{
    public static class SensorDataFactory
    {
        public static ISensorData CreateUnknownData(byte address)
        {
            return new SensorData(address) { Status = PressureStatus.Unknown };
        }

        public static ISensorData CreateErrorData(byte address)
        {
            return new SensorData(address) { Status = PressureStatus.Error };
        }

        public static ISensorData CreateStaticData(byte address, int building, int floor, int line, GasType gasType)
        {
            return new SensorData(address, building, floor, line, gasType);
        }

        public static ISensorData CreateDynamicData(byte address)
        {
            return new SensorData(address);
        }
    }
}
